FROM ascdc/jdk8
MAINTAINER px
# 挂载目录
VOLUME /opt/ai-um-job/um-job-admin
# 创建目录
RUN mkdir -p /opt/ai-um-job/um-job-admin
# 指定路径
WORKDIR /opt/ai-um-job/um-job-admin

# 复制jar文件到路径
COPY ./jar/bs-job-admin-1.0.0.jar /opt/ai-um-job/um-job-admin/bs-job-admin-1.0.0.jar

ENV PARAMS=""
ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 启动服务
ENTRYPOINT ["sh","-c","java -jar bs-job-admin-1.0.0.jar $PARAMS"]